package cn.wk.dto;

import cn.wk.domain.Movie;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class MovieDto {
    private Long movielId;
    private Integer number;
    //上线
    private Integer state;
    //上线时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date onlineTime = new Date();

    @Override
    public String toString() {
        return "MovieDto{" +
                "movielId=" + movielId +
                ", number=" + number +
                ", state=" + state +
                ", onlineTime=" + onlineTime +
                '}';
    }

    public Long getMovielId() {
        return movielId;
    }

    public void setMovielId(Long movielId) {
        this.movielId = movielId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getOnlineTime() {
        return onlineTime;
    }

    public void setOnlineTime(Date onlineTime) {
        this.onlineTime = onlineTime;
    }

    public MovieDto() {

    }

    public MovieDto(Long movielId, Integer number, Integer state, Date onlineTime) {

        this.movielId = movielId;
        this.number = number;
        this.state = state;
        this.onlineTime = onlineTime;
    }
}
